package P3.T03;

public class CatWeightComparator implements Comparator{
    @Override
    public int compare(Object o1, Object o2) {
        Cat oc1=(Cat)o1;
        Cat oc2=(Cat)o2;
        return oc1.getWeight()-oc2.getWeight();
    }
}
